package com.taomus.mytools.simplec.utils;

import com.taomus.mytools.simplec.generate.Token;
import com.taomus.mytools.simplec.utils.ErrorEnum;

public class ErrorUtils {
	public static void error(ErrorEnum err,Token tk){
		StringBuilder info = new StringBuilder("Line ");
		//info.append(tk.getLine());
		info.append(" : ");
		info.append(tk.getSymbol());
		info.append(" ");
		info.append(err.getText());
		error(info.toString());
	}
	
	public static void error(Object err){
		System.err.println(err);
	}
}
